package com.wxmp.market.zhuli.service.impl;

import com.wxmp.market.zhuli.domain.WxZhuliSend;
import com.wxmp.market.zhuli.mapper.WxZhuliSendDao;
import com.wxmp.market.zhuli.service.WxZhuliSendService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service("wxZhuliSendService")
@Transactional
public class WxZhuliSendServiceImpl implements WxZhuliSendService {

    @Resource
    private WxZhuliSendDao sendDao;

    @Override
    public WxZhuliSend selectSendInfoBySend(HashMap<String, String> map) {
        return sendDao.selectSendInfoBySend(map);
    }

    @Override
    public WxZhuliSend selectSendInfoByQRCode(String sendQRCode) {
        return sendDao.selectSendInfoByQRCode(sendQRCode);
    }

    @Override
    public void add(WxZhuliSend zhuliSend) {
        sendDao.add(zhuliSend);
    }

    @Override
    public void sendDone(WxZhuliSend zhuliSend) {
        sendDao.sendDone(zhuliSend);
    }

    @Override
    public List<WxZhuliSend> list(WxZhuliSend zhuliSend) {
        return sendDao.list(zhuliSend);
    }
}
